Optimal. Leaf size=57 \[ \frac {x \left (1+x^2\right )}{2 \sqrt {-1+x^4}}-\frac {\sqrt {1-x^2} \sqrt {1+x^2} E\left (\left .\sin ^{-1}(x)\right |-1\right )}{2 \sqrt {-1+x^4}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 57, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {1270, 482, 437,
435} \begin {gather*} \frac {x \left (x^2+1\right )}{2 \sqrt {x^4-1}}-\frac {\sqrt {1-x^2} \sqrt {x^2+1} E(\text {ArcSin}(x)|-1)}{2 \sqrt {x^4-1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 435
Rule 437
Rule 482
Rule 1270
Rubi steps
\begin {align*} \int \frac {x^2}{\left (1-x^2\right ) \sqrt {-1+x^4}} \, dx &=\frac {\left (\sqrt {-1-x^2} \sqrt {1-x^2}\right ) \int \frac {x^2}{\sqrt {-1-x^2} \left (1-x^2\right )^{3/2}} \, dx}{\sqrt {-1+x^4}}\\ &=\frac {x \left (1+x^2\right )}{2 \sqrt {-1+x^4}}+\frac {\left (\sqrt {-1-x^2} \sqrt {1-x^2}\right ) \int \frac {\sqrt {-1-x^2}}{\sqrt {1-x^2}} \, dx}{2 \sqrt {-1+x^4}}\\ &=\frac {x \left (1+x^2\right )}{2 \sqrt {-1+x^4}}+\frac {\left (\left (-1-x^2\right ) \sqrt {1-x^2}\right ) \int \frac {\sqrt {1+x^2}}{\sqrt {1-x^2}} \, dx}{2 \sqrt {1+x^2} \sqrt {-1+x^4}}\\ &=\frac {x \left (1+x^2\right )}{2 \sqrt {-1+x^4}}-\frac {\sqrt {1-x^2} \sqrt {1+x^2} E\left (\left .\sin ^{-1}(x)\right |-1\right )}{2 \sqrt {-1+x^4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 10.07, size = 35, normalized size = 0.61 \begin {gather*} \frac {x+x^3-\sqrt {1-x^4} E\left (\left .\sin ^{-1}(x)\right |-1\right )}{2 \sqrt {-1+x^4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 133 vs. \(2 (45 ) = 90\).
time = 0.15, size = 134, normalized size = 2.35
method | result | size |
risch | \(\frac {x \left (x^{2}+1\right )}{2 \sqrt {x^{4}-1}}+\frac {i \sqrt {x^{2}+1}\, \sqrt {-x^{2}+1}\, \EllipticF \left (i x , i\right )}{2 \sqrt {x^{4}-1}}+\frac {i \sqrt {x^{2}+1}\, \sqrt {-x^{2}+1}\, \left (\EllipticF \left (i x , i\right )-\EllipticE \left (i x , i\right )\right )}{2 \sqrt {x^{4}-1}}\) | \(93\) |
elliptic | \(\frac {\left (x^{2}+1\right ) x}{2 \sqrt {\left (x^{2}+1\right ) \left (x^{2}-1\right )}}+\frac {i \sqrt {x^{2}+1}\, \sqrt {-x^{2}+1}\, \EllipticF \left (i x , i\right )}{2 \sqrt {x^{4}-1}}+\frac {i \sqrt {x^{2}+1}\, \sqrt {-x^{2}+1}\, \left (\EllipticF \left (i x , i\right )-\EllipticE \left (i x , i\right )\right )}{2 \sqrt {x^{4}-1}}\) | \(99\) |
default | \(\frac {i \sqrt {x^{2}+1}\, \sqrt {-x^{2}+1}\, \EllipticF \left (i x , i\right )}{2 \sqrt {x^{4}-1}}+\frac {x^{3}+x^{2}+x +1}{4 \sqrt {\left (-1+x \right ) \left (x^{3}+x^{2}+x +1\right )}}+\frac {i \sqrt {x^{2}+1}\, \sqrt {-x^{2}+1}\, \left (\EllipticF \left (i x , i\right )-\EllipticE \left (i x , i\right )\right )}{2 \sqrt {x^{4}-1}}+\frac {x^{3}-x^{2}+x -1}{4 \sqrt {\left (1+x \right ) \left (x^{3}-x^{2}+x -1\right )}}\) | \(134\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.08, size = 17, normalized size = 0.30 \begin {gather*} \frac {\sqrt {x^{4} - 1} x}{2 \, {\left (x^{2} - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int \frac {x^{2}}{x^{2} \sqrt {x^{4} - 1} - \sqrt {x^{4} - 1}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} -\int \frac {x^2}{\left (x^2-1\right )\,\sqrt {x^4-1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________